Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <video id="myVideo"> <source id="mp4_src" src="mov_bbb.mp4" type="video/mp4"> <source id="ogg_src" src="mov_bbb.ogg" type="video/ogg"> Your browser does not support the video tag. </video> <p>Click the buttons to play or pause the video.</p> <button onclick="playVid()" type="button">Play Video</button> <button onclick="pauseVid()" type="button">Pause Video</button> <script> var x = document.getElementById("myVideo"); function playVid() { x.play(); } function pauseVid() { x.pause(); } </script> <p>Video courtesy of <a href="http://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.</p> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_video_play by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:35:37 GMT --> </html>
Result:
Try it Yourself - © w3schools.com